package univ.lille1.fr.car;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

public class Commande extends HttpServlet {
	private static final long serialVersionUID = 1L;

	HttpSession session;

	public void doGet(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		// on récupère le panier en session
		session = request.getSession();
		request.setAttribute("panier", session.getAttribute("panier"));
		// et on l'envoi à la jsp
		this.getServletContext().getRequestDispatcher("/WEB-INF/commande.jsp")
				.forward(request, response);
	}

	public void doPost(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {

	}
}
